home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / Desk.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.4 KB  |  71 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 10:27 PM
  3.     Desk.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-1989
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Desk;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingDesk}
  21. {$SETC UsingDesk := 1}
  22.  
  23. {$I+}
  24. {$SETC DeskIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingQuickdraw}
  30. {$I $$Shell(PInterfaces)Quickdraw.p}
  31. {$ENDC}
  32. {$IFC UNDEFINED UsingEvents}
  33. {$I $$Shell(PInterfaces)Events.p}
  34. {$ENDC}
  35. {$SETC UsingIncludes := DeskIncludes}
  36.  
  37. CONST
  38. accEvent = 64;
  39. accRun = 65;
  40. accCursor = 66;
  41. accMenu = 67;
  42. accUndo = 68;
  43. accCut = 70;
  44. accCopy = 71;
  45. accPaste = 72;
  46. accClear = 73;
  47. goodbye = -1;   {goodbye message}
  48.  
  49. FUNCTION OpenDeskAcc(deskAccName: Str255): INTEGER;
  50.     INLINE $A9B6;
  51. PROCEDURE CloseDeskAcc(refNum: INTEGER);
  52.     INLINE $A9B7;
  53. PROCEDURE SystemClick(theEvent: EventRecord;theWindow: WindowPtr);
  54.     INLINE $A9B3;
  55. FUNCTION SystemEdit(editCmd: INTEGER): BOOLEAN;
  56.     INLINE $A9C2;
  57. PROCEDURE SystemTask;
  58.     INLINE $A9B4;
  59. FUNCTION SystemEvent(theEvent: EventRecord): BOOLEAN;
  60.     INLINE $A9B2;
  61. PROCEDURE SystemMenu(menuResult: LONGINT);
  62.     INLINE $A9B5;
  63.  
  64.  
  65. {$ENDC}    { UsingDesk }
  66.  
  67. {$IFC NOT UsingIncludes}
  68.     END.
  69. {$ENDC}
  70.  
  71.